import axios from "../../axios"

export function getBusinessMenu() {
    return axios.get("/getBusinessMenu")
}

export function addBusinessMenu(data) {
    return axios({
        method: 'POST',
        url: '/addBusinessMenu',
        params: data,
    })
}

export function updateBusinessMenu(data) {
    return axios({
        method: 'PUT',
        url: '/updateBusinessMenu',
        params: data,
    })
}

export function deleteBusinessMenu(businessId) {
    return axios.delete('/deleteBusinessMenu?businessIdDelete=' + businessId)
}